package cn.yi.springboot.druid.two.dto;

import cn.yi.springboot.druid.BaseDTO;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;


@EqualsAndHashCode(callSuper = true)
@Data
@ToString
public class UserDTO extends BaseDTO {

    private String username;

    private String password;

    private Integer status;

    private Integer isAdmin;

    //保存时设置值，每个用户都是独立的 String salt = RandomStringUtils.randomAlphanumeric(20);
    //保存密码时，使用唯一标记进行加密 ShiroUtils.sha256(user.getPassword(), user.getSalt())
    private String salt;

}
